package interview.removeduplicate;

public class Node {
	Node next;
	Node previous;
	Node child;
	int data;
	
	public Node() {
		
	}
	
	public Node(Node n, Node c, Node p, int d) {
		this.next = n;
		this.previous = p;
		this.child = c;
		this.data = d;
	}
	
	public void setPrevious(Node p) {
		this.previous = p;
	}
	
	public void setNext(Node n) {
		this.next = n;
	}
	
	public void setChild(Node c) {
		this.child = c;
	}
	
	public void setData(int d) {
		this.data = d;
	}
	
	public Node getPrevious() {
		return previous;
	}
	
	public Node getNext() {
		return next;
	}
	
	public Node getChild() {
		return child;
	}
	
	public int getData() {
		return data;
	}
}
